package com.lt.eurekaconsumerfeign.service;

import com.lt.dto.UserDto;
import com.lt.vo.ResultEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "EUREKA-PRODUCER",fallbackFactory = UserServiceFallBack.class)
public interface UserService {
    @RequestMapping("/user/list")
    public ResultEntity getUserList(@RequestBody UserDto userDto);
}
